<link href="<?php echo base_url('theme/css/frontend/company-add.css'); ?>" rel="stylesheet">
<link rel="stylesheet" href="<?php echo base_url('theme/css/frontend/jquery.Jcrop.min.css'); ?>" type="text/css" />
<div class="wrapper company-add">

  <?php echo validation_errors('<div class="alert alert-error">','</div>'); ?>
  <h3>Đăng ký thông tin  doanh nghiệp</h3>
  <hr class=hr />
  
  <form method="post" class="form-horizontal" action="<?php echo base_url("booth_product_categories/add/{$boothId}/" . @$boothProductCategories['id']); ?>">
    <h5>Thêm mới danh mục cho sản phẩm của gian hàng</h5>
    <hr class="hr hr2" />
    
    <div class=info>
      <div class="control-group">
        <label for="name" class="control-label">Tên danh mục<i>*</i></label>
        <div class="controls">
          <input type=text name=name id=name class="input-xxlarge" value="<?php echo set_value('name', @$boothProductCategories['name']); ?>">
       	</div>
      </div>
      
      <?php if($parentBoothProductCategories): ?>
      <div class="control-group">
       	<label for="business_types" class="control-label">Danh mục cha<i>*</i></label>
       	<div class="controls">
        	<select name=parent_id id=parent_id>  
        	  <option value=0 > -- </option>
        	<?php foreach($parentBoothProductCategories as $parentBoothProductCategory): ?>
              <option value=<?php echo $parentBoothProductCategory['id']; ?> <?php echo set_select('parent_id', $parentBoothProductCategory['id'], $parentBoothProductCategory['id'] == @$boothProductCategories['parent_id'] ? TRUE : FALSE); ?>><?php echo $parentBoothProductCategory['name']; ?></option>
            <?php endforeach; ?>
            </select>		             	
      	</div>
      </div>
      <?php endif; ?>
      
      <div class="control-group">
        <div class=controls>
          <button class="btn" type=submit value="Lưu thay đổi">Lưu thay đổi</button>
        </div>
      </div>
    </div>
  </form>
</div>